package com.yusys.jin.blog.service;


import java.io.File;

import javax.servlet.http.HttpSession;

import org.springframework.web.multipart.MultipartFile;

import com.yusys.jin.blog.entity.Picture;
import com.yusys.jin.blog.entity.User;

public interface IUserService {
    /**
     * 注册业务层
     *
     * @param user
     */
    void reg(User user);


    /**
     * 登录
     */
    void login(User user, HttpSession session);

    /**
     * 验证用户名是否可用
     */
    void checkusername(String username);

    /**
     * 更新用户头像
     *
     * @param parent
     * @param file
     */
    void updateAvatar(Picture picture, int check, MultipartFile file, File parent);

    /**
     * 查询用户头像
     *
     * @param state
     * @param uid
     * @return
     */
    String findUsersAvataar(Integer state, Integer uid);


}
